package cn.libinal.scloud.base.repository;

import cn.libinal.scloud.base.common.repository.BaseJpaRepository;
import cn.libinal.scloud.base.entity.Menu;

import java.util.List;

/**
 * 菜单JPA接口
 *
 * @author libinal
 * created at 2018/11/4 16:01
 */
public interface MenuRepository extends BaseJpaRepository<Menu, String> {
    /**
     * 查询根节点菜单
     * @return List
     */
    List<Menu> findByParentNull();
}
